//
//  photoExhibitionRightCell.m
//  PhotoCircle
//
//  Created by wujungao on 12/14/15.
//  Copyright © 2015 wujungao. All rights reserved.
//

#import "photoExhibitionRightCell.h"
#import "UIImageView+WebCache.h"

@interface photoExhibitionRightCell()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@property (weak, nonatomic) IBOutlet UIView *labelView;
@property (weak, nonatomic) IBOutlet UILabel *label;
@property (weak, nonatomic) IBOutlet UIView *blackLineView;

@end

@implementation photoExhibitionRightCell

-(void)awakeFromNib{
    
    
}

-(void)configCellWithImageURL:(NSString *)imageURL andTitle:(NSString *)title{
    
    [self configView];
    self.label.text=title;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:imageURL] placeholderImage:nil completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
        
    }];
}

#pragma mark - config views
-(void)configView{
    
    self.imageView.contentMode=UIViewContentModeScaleToFill;
    //self.blackLineView.backgroundColor=[UIColor grayColor];
}

@end
